  /**
   * Generate time : 2016-05-11 9:31:22
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.cn.domain;

import com.baosight.iplat4j.util.NumberUtils;
import java.math.BigDecimal;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCNMccy 
 * table comment : 煤层样数据 
 */
public class ZMCNMccy extends DaoEPBase {

	private String fdKeyId = " ";		/* 主键*/
	private String fdStatus = "草拟";		/* 状态*/
	private String fdReportTime = " ";		/* 汇报时间*/
	private String fdReportPerson = " ";		/* 汇报人*/
	private String fdReportDepartmentId = " ";		/* 汇报部门ID*/
	private String fdReportDepartment = " ";		/* 汇报部门*/
	private String fdMyNum = " ";		/* 煤样编码*/
	private String fdMyDate = " ";		/* 检测日期*/
	private String fdMyName = " ";		/* 煤样名称*/
	private String fdWorkfaceName = " ";		/* 工作面名称*/
	private BigDecimal fdExcavateHeight = new BigDecimal("0");		/* 采高(米)*/
	private BigDecimal fdThickness = new BigDecimal("0");		/* 平均煤厚*/
	private BigDecimal fdMyMad = new BigDecimal("0");		/* 水分Mad(%)*/
	private BigDecimal fdMyVd = new BigDecimal("0");		/* 挥发分Vd(%)*/
	private BigDecimal fdMySt = new BigDecimal("0");		/* 硫分St,d(%)*/
	private BigDecimal fdMyAd = new BigDecimal("0");		/* 灰分Ad(%)*/
	private BigDecimal fdMyTrd = new BigDecimal("0");		/* 真密度TRD,d*/
	private BigDecimal fdMyQgr = new BigDecimal("0");		/* 发热量Qgr.v.d(MJ/kg)*/
	private BigDecimal fdMyQnet = new BigDecimal("0");		/* 发热量Qnet,v,ar(J/g)*/
	private String fdRemark = " ";		/* 备注*/
	private String fdYear = " ";		
	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("主键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdStatus");
	eiColumn.setFieldLength(6);	
	eiColumn.setDescName("状态");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdReportTime");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("汇报时间");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdReportPerson");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("汇报人");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdReportDepartmentId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("汇报部门ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdReportDepartment");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("汇报部门");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyNum");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("煤样编码");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyDate");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("检测日期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyName");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("煤样名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdWorkfaceName");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("工作面名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdExcavateHeight");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("采高(米)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdThickness");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("平均煤厚");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyMad");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("水分Mad(%)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyVd");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("挥发分Vd(%)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMySt");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("硫分St,d(%)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyAd");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("灰分Ad(%)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyTrd");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("真密度TRD,d");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyQgr");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("发热量Qgr.v.d(MJ/kg)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyQnet");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("发热量Qnet,v,ar(J/g)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRemark");
	eiColumn.setFieldLength(500);	
	eiColumn.setDescName("备注");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdYear");
	eiColumn.setFieldLength(4);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCNMccy() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - 主键
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	/**
	 * get the fdStatus - 状态
	 * @return the fdStatus
	 */
	public String getFdStatus() {
		return this.fdStatus;
	}
	
	/**
	 * set the fdStatus - 状态
	 */
	public void setFdStatus(String fdStatus) {
		this.fdStatus = fdStatus;
	}
	/**
	 * get the fdReportTime - 汇报时间
	 * @return the fdReportTime
	 */
	public String getFdReportTime() {
		return this.fdReportTime;
	}
	
	/**
	 * set the fdReportTime - 汇报时间
	 */
	public void setFdReportTime(String fdReportTime) {
		this.fdReportTime = fdReportTime;
	}
	/**
	 * get the fdReportPerson - 汇报人
	 * @return the fdReportPerson
	 */
	public String getFdReportPerson() {
		return this.fdReportPerson;
	}
	
	/**
	 * set the fdReportPerson - 汇报人
	 */
	public void setFdReportPerson(String fdReportPerson) {
		this.fdReportPerson = fdReportPerson;
	}
	/**
	 * get the fdReportDepartmentId - 汇报部门ID
	 * @return the fdReportDepartmentId
	 */
	public String getFdReportDepartmentId() {
		return this.fdReportDepartmentId;
	}
	
	/**
	 * set the fdReportDepartmentId - 汇报部门ID
	 */
	public void setFdReportDepartmentId(String fdReportDepartmentId) {
		this.fdReportDepartmentId = fdReportDepartmentId;
	}
	/**
	 * get the fdReportDepartment - 汇报部门
	 * @return the fdReportDepartment
	 */
	public String getFdReportDepartment() {
		return this.fdReportDepartment;
	}
	
	/**
	 * set the fdReportDepartment - 汇报部门
	 */
	public void setFdReportDepartment(String fdReportDepartment) {
		this.fdReportDepartment = fdReportDepartment;
	}
	/**
	 * get the fdMyNum - 煤样编码
	 * @return the fdMyNum
	 */
	public String getFdMyNum() {
		return this.fdMyNum;
	}
	
	/**
	 * set the fdMyNum - 煤样编码
	 */
	public void setFdMyNum(String fdMyNum) {
		this.fdMyNum = fdMyNum;
	}
	/**
	 * get the fdMyDate - 检测日期
	 * @return the fdMyDate
	 */
	public String getFdMyDate() {
		return this.fdMyDate;
	}
	
	/**
	 * set the fdMyDate - 检测日期
	 */
	public void setFdMyDate(String fdMyDate) {
		this.fdMyDate = fdMyDate;
	}
	/**
	 * get the fdMyName - 煤样名称
	 * @return the fdMyName
	 */
	public String getFdMyName() {
		return this.fdMyName;
	}
	
	/**
	 * set the fdMyName - 煤样名称
	 */
	public void setFdMyName(String fdMyName) {
		this.fdMyName = fdMyName;
	}
	/**
	 * get the fdWorkfaceName - 工作面名称
	 * @return the fdWorkfaceName
	 */
	public String getFdWorkfaceName() {
		return this.fdWorkfaceName;
	}
	
	/**
	 * set the fdWorkfaceName - 工作面名称
	 */
	public void setFdWorkfaceName(String fdWorkfaceName) {
		this.fdWorkfaceName = fdWorkfaceName;
	}
	/**
	 * get the fdExcavateHeight - 采高(米)
	 * @return the fdExcavateHeight
	 */
	public BigDecimal getFdExcavateHeight() {
		return this.fdExcavateHeight;
	}
	
	/**
	 * set the fdExcavateHeight - 采高(米)
	 */
	public void setFdExcavateHeight(BigDecimal fdExcavateHeight) {
		this.fdExcavateHeight = fdExcavateHeight;
	}
	/**
	 * get the fdThickness - 平均煤厚
	 * @return the fdThickness
	 */
	public BigDecimal getFdThickness() {
		return this.fdThickness;
	}
	
	/**
	 * set the fdThickness - 平均煤厚
	 */
	public void setFdThickness(BigDecimal fdThickness) {
		this.fdThickness = fdThickness;
	}
	/**
	 * get the fdMyMad - 水分Mad(%)
	 * @return the fdMyMad
	 */
	public BigDecimal getFdMyMad() {
		return this.fdMyMad;
	}
	
	/**
	 * set the fdMyMad - 水分Mad(%)
	 */
	public void setFdMyMad(BigDecimal fdMyMad) {
		this.fdMyMad = fdMyMad;
	}
	/**
	 * get the fdMyVd - 挥发分Vd(%)
	 * @return the fdMyVd
	 */
	public BigDecimal getFdMyVd() {
		return this.fdMyVd;
	}
	
	/**
	 * set the fdMyVd - 挥发分Vd(%)
	 */
	public void setFdMyVd(BigDecimal fdMyVd) {
		this.fdMyVd = fdMyVd;
	}
	/**
	 * get the fdMySt - 硫分St,d(%)
	 * @return the fdMySt
	 */
	public BigDecimal getFdMySt() {
		return this.fdMySt;
	}
	
	/**
	 * set the fdMySt - 硫分St,d(%)
	 */
	public void setFdMySt(BigDecimal fdMySt) {
		this.fdMySt = fdMySt;
	}
	/**
	 * get the fdMyAd - 灰分Ad(%)
	 * @return the fdMyAd
	 */
	public BigDecimal getFdMyAd() {
		return this.fdMyAd;
	}
	
	/**
	 * set the fdMyAd - 灰分Ad(%)
	 */
	public void setFdMyAd(BigDecimal fdMyAd) {
		this.fdMyAd = fdMyAd;
	}
	/**
	 * get the fdMyTrd - 真密度TRD,d
	 * @return the fdMyTrd
	 */
	public BigDecimal getFdMyTrd() {
		return this.fdMyTrd;
	}
	
	/**
	 * set the fdMyTrd - 真密度TRD,d
	 */
	public void setFdMyTrd(BigDecimal fdMyTrd) {
		this.fdMyTrd = fdMyTrd;
	}
	/**
	 * get the fdMyQgr - 发热量Qgr.v.d(MJ/kg)
	 * @return the fdMyQgr
	 */
	public BigDecimal getFdMyQgr() {
		return this.fdMyQgr;
	}
	
	/**
	 * set the fdMyQgr - 发热量Qgr.v.d(MJ/kg)
	 */
	public void setFdMyQgr(BigDecimal fdMyQgr) {
		this.fdMyQgr = fdMyQgr;
	}
	/**
	 * get the fdMyQnet - 发热量Qnet,v,ar(J/g)
	 * @return the fdMyQnet
	 */
	public BigDecimal getFdMyQnet() {
		return this.fdMyQnet;
	}
	
	/**
	 * set the fdMyQnet - 发热量Qnet,v,ar(J/g)
	 */
	public void setFdMyQnet(BigDecimal fdMyQnet) {
		this.fdMyQnet = fdMyQnet;
	}
	/**
	 * get the fdRemark - 备注
	 * @return the fdRemark
	 */
	public String getFdRemark() {
		return this.fdRemark;
	}
	
	/**
	 * set the fdRemark - 备注
	 */
	public void setFdRemark(String fdRemark) {
		this.fdRemark = fdRemark;
	}
	/**
	 * get the fdYear 
	 * @return the fdYear
	 */
	public String getFdYear() {
		return this.fdYear;
	}
	
	/**
	 * set the fdYear 
	 */
	public void setFdYear(String fdYear) {
		this.fdYear = fdYear;
	}
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStatus")), fdStatus));
		setFdReportTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReportTime")), fdReportTime));
		setFdReportPerson(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReportPerson")), fdReportPerson));
		setFdReportDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReportDepartmentId")), fdReportDepartmentId));
		setFdReportDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReportDepartment")), fdReportDepartment));
		setFdMyNum(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMyNum")), fdMyNum));
		setFdMyDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMyDate")), fdMyDate));
		setFdMyName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMyName")), fdMyName));
		setFdWorkfaceName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdWorkfaceName")), fdWorkfaceName));
		setFdExcavateHeight(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdExcavateHeight")), fdExcavateHeight));
		setFdThickness(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdThickness")), fdThickness));
		setFdMyMad(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMyMad")), fdMyMad));
		setFdMyVd(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMyVd")), fdMyVd));
		setFdMySt(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMySt")), fdMySt));
		setFdMyAd(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMyAd")), fdMyAd));
		setFdMyTrd(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMyTrd")), fdMyTrd));
		setFdMyQgr(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMyQgr")), fdMyQgr));
		setFdMyQnet(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMyQnet")), fdMyQnet));
		setFdRemark(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRemark")), fdRemark));
		setFdYear(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdYear")), fdYear));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdStatus",StringUtils.toString(fdStatus, eiMetadata.getMeta("fdStatus")));	
			map.put("fdReportTime",StringUtils.toString(fdReportTime, eiMetadata.getMeta("fdReportTime")));	
			map.put("fdReportPerson",StringUtils.toString(fdReportPerson, eiMetadata.getMeta("fdReportPerson")));	
			map.put("fdReportDepartmentId",StringUtils.toString(fdReportDepartmentId, eiMetadata.getMeta("fdReportDepartmentId")));	
			map.put("fdReportDepartment",StringUtils.toString(fdReportDepartment, eiMetadata.getMeta("fdReportDepartment")));	
			map.put("fdMyNum",StringUtils.toString(fdMyNum, eiMetadata.getMeta("fdMyNum")));	
			map.put("fdMyDate",StringUtils.toString(fdMyDate, eiMetadata.getMeta("fdMyDate")));	
			map.put("fdMyName",StringUtils.toString(fdMyName, eiMetadata.getMeta("fdMyName")));	
			map.put("fdWorkfaceName",StringUtils.toString(fdWorkfaceName, eiMetadata.getMeta("fdWorkfaceName")));	
			map.put("fdExcavateHeight",StringUtils.toString(fdExcavateHeight, eiMetadata.getMeta("fdExcavateHeight")));	
			map.put("fdThickness",StringUtils.toString(fdThickness, eiMetadata.getMeta("fdThickness")));	
			map.put("fdMyMad",StringUtils.toString(fdMyMad, eiMetadata.getMeta("fdMyMad")));	
			map.put("fdMyVd",StringUtils.toString(fdMyVd, eiMetadata.getMeta("fdMyVd")));	
			map.put("fdMySt",StringUtils.toString(fdMySt, eiMetadata.getMeta("fdMySt")));	
			map.put("fdMyAd",StringUtils.toString(fdMyAd, eiMetadata.getMeta("fdMyAd")));	
			map.put("fdMyTrd",StringUtils.toString(fdMyTrd, eiMetadata.getMeta("fdMyTrd")));	
			map.put("fdMyQgr",StringUtils.toString(fdMyQgr, eiMetadata.getMeta("fdMyQgr")));	
			map.put("fdMyQnet",StringUtils.toString(fdMyQnet, eiMetadata.getMeta("fdMyQnet")));	
			map.put("fdRemark",StringUtils.toString(fdRemark, eiMetadata.getMeta("fdRemark")));	
			map.put("fdYear",StringUtils.toString(fdYear, eiMetadata.getMeta("fdYear")));	
			
		return map;
	
	}
}